{% extends "settings/base.html" %}
{% load i18n %}
{% block title %}{% trans 'Password reset' %}{% endblock %}
{% block page_title %}{% trans 'Password reset' %}{% endblock %}

{% block page_content %}

{% if form.errors %}
<p class="errornote">
{% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
</p>
{% endif %}

<p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." %}</p>

<form action="" method="post">{% csrf_token %}
{% for field in form %}
	<div class="form_field_wrapper">
		{% if field.errors %}
		<div class="form_field_error">{{ field.errors }}</div>
		{% endif %}
		<div class="form_field">
			<div class="form_field_label">
				<label>{{ field.label_tag }}:</label>
			</div>
			<div class="form_field_input">
				{{ field }}
			</div> 
			<br class="clear" />
		</div>
	</div>
{% endfor %}
	<br class="clear"/>
	<div class="form_buttons">
		<input type="submit" value="{% trans 'Reset my password' %}" class="form_button" style="width: 150px;"/>
	</div>
<script type="text/javascript">document.getElementById("id_email").focus();</script>
</form>

{% endblock page_content %}
